{extends file="../acp.html"}

{block name="title"}{$head_title}{/block}
{block name="content"}
<div class="tabs clearfix">
    <a href="javascript:;" class="active tabs_a fl" data-origin="additem" data-index="1">{$AGENT_NAME}信息</a>
    <!--<a href="javascript:;" class="tabs_a fl" data-origin="additem" data-index="2">{$ITEM_NAME}属性</a>
    <a href="javascript:;" class="tabs_a fl" data-origin="additem" data-index="3">详细描述</a>-->
</div>
<!-- end tabs -->
<div class="tabs-content" data-origin="additem">
<form method="post" id="form_addAgent" enctype="multipart/form-data">

<div class="tc" data-index="1">
        <div class="formitems inline">
            <label class="fi-name">
                <span class="colorRed">*</span>用户名：</label>
            <div class="form-controls">
                <input type="text" placeholder="" class="small" name="username" value="{$user_info.username}">
                <span class="fi-help-text">用户名请填写代理商手机号</span>
            </div>
        </div>

        <div class="formitems inline">
            <label class="fi-name">
                <span class="colorRed">*</span>密码：</label>
            <div class="form-controls">
                <input type="text" placeholder="" class="small" name="password">
                <span class="fi-help-text">长度至少6位</span>
            </div>
        </div>

        <div class="formitems inline">
            <label class="fi-name">
                <span class="colorRed">*</span>加盟商名称：</label>
            <div class="form-controls">
                <input type="text" placeholder="" class="small" name="nickname" value="{$user_info.nickname}">
                <span class="fi-help-text error"></span>
            </div>
        </div>

        <div class="formitems inline">
            <label class="fi-name">
                <span class="colorRed">*</span>联系人：</label>
            <div class="form-controls">
                <input type="text" placeholder="" class="small" name="realname" value="{$user_info.realname}">
                <span class="fi-help-text error"></span>
            </div>
        </div>

        <div class="formitems inline">
            <label class="fi-name">
                <span class="colorRed">*</span>手机号：</label>
            <div class="form-controls">
                <input type="text" placeholder="" class="small" name="mobile" value="{$user_info.mobile}">
                <span class="fi-help-text error"></span>
            </div>
        </div>

        <!-- <div class="formitems inline">
            <label class="fi-name">
                <span class="colorRed">*</span>收货地址：</label>
            <div class="form-controls">
                <input type="text" placeholder="" class="small" name="address" value="{$address}">
                <span class="fi-help-text error"></span>
            </div>
        </div> -->

        <div class="formitems inline">
            <label class="fi-name"><span class="colorRed">*</span>用户类型：</label>
            <div class="form-controls">
                <div class="radio-group">
                    <label><input type="radio" name="user_type" value="1" {if $user_info.user_type == 1}checked {/if}>系统内用户</label>
                    <label><input type="radio" name="user_type" value="0" {if $user_info.user_type == 0}checked {/if}>系统外用户</label>
                </div>
                <span class="fi-help-text error"></span>
            </div>
        </div>

        <div class="formitems inline">
            <label class="fi-name">
                邮箱：</label>
            <div class="form-controls">
                <input type="text" placeholder="" class="small" name="email" value="{$user_info.email}">
                <span class="fi-help-text error"></span>
            </div>
        </div>

        <div class="formitems inline">
            <label class="fi-name">
                <span class="colorRed">*</span>QQ：</label>
            <div class="form-controls">
                <input type="text" placeholder="" class="small" name="qq" value="{$user_info.qq}">
                <span class="fi-help-text error"></span>
            </div>
        </div>

        <div class="formitems inline">
            <label class="fi-name">
                <span class="colorRed">*</span>门店编号：</label>
            <div class="form-controls">
                <input type="text" placeholder="" class="small" name="store_sn" value="{$user_info.store_sn}">
                <span class="fi-help-text error"></span>
            </div>
        </div>

        <div class="formitems inline">
            <label class="fi-name">
                <span class="colorRed">*</span>大区：
            </label>
            <div class="form-controls">
                <select name="big_area_id">
                    <option value="0">--请选择--</option>
                    {foreach from=$big_area_list item=item}
                    <option value="{$item.big_area_id}"{if $user_info.big_area_id == $item.big_area_id} selected="selected"{/if}>{$item.area_name}</option>
                    {/foreach}
                </select>
                <span class="fi-help-text error"></span>
            </div>
        </div>

        <div class="formitems inline">  
            <label class="fi-name"><span class="colorRed">*</span> 选择城市：</label>  
            <div class="form-controls">  
                <select class="small" id="province_id" name="province_id">  
                    {if !$province_info.province_id}
                    <option value="0">--选择省份--</option>
                    {/if}
                    {foreach from=$province_list item=province_item}
                        <option value="{$province_item.province_id}" {if isset($province_info.province_id) && $province_info.province_id == $province_item.province_id}selected{/if}>{$province_item.province_name}</option>  
                    {/foreach}
                </select> 
                <select class="small" id="city_id" name="city_id">  
                    {if !$city_info.city_id}
                    <option value="0">--选择城市--</option>  
                    {/if}
                    {foreach from=$city_list item=city_item}
                        <option value="{$city_item.city_id}" {if isset($city_info.city_id) && $city_info.city_id == $city_item.city_id}selected{/if}>{$city_item.city_name}</option>  
                    {/foreach}
                </select> 
                <span id="areaSelP">
                    <select class="small" id="area_id" name="area_id">  
                    {if !isset($area_info.area_id)}
                    <option value="0">{$city_info.city_name}</option>  
                    {else}
                    {foreach from=$area_list item=area_item}
                        <option value="{$area_item.area_id}" {if isset($area_info.area_id) && $area_info.area_id == $area_item.area_id}selected{/if}>{$area_item.area_name}</option>  
                    {/foreach}
                    {/if}
                    </select> 
                </span>
                <span class="fi-help-text"></span>  
            </div>  
        </div>

        <div class="formactions mgl180">
            <input type="hidden" name="action" value="edit">
            <button class="btn btn-blue"><i class="gicon-ok white"></i>提交</button>
        </div>
</div>

<!-- end 基本信息 -->
</form>
</div>
{/block}
{block name="css"}
{literal}
<style>
    #jpops .fi-name{width:65px;}
    #jpops .form-controls{margin-left:75px;}
    #j-item-extend li{margin-bottom:10px;}
    .edit_item_tip{font-size: 18px;color: #a0a0a0;background-color: inherit;text-decoration: none;margin: 20px 180px;}
</style>
{/literal}
{/block}
{block name="js"}
<script type="text/javascript" src="__ACPJS__/AcpArticle/user_save.js?version={$version}"></script>
<script src="__JS__/jquery/ajaxupload.3.5.js?version={$version}"></script>
<script src="__ACPJS__/AcpItem/add_item_step1.js?version={$version}"></script>
{/block}
